package com.liuxin.zhiyuan.user.service.impl;

import com.liuxin.zhiyuan.user.domain.po.LxzyRole;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liuxin.common.utils.PageUtils;
import com.liuxin.common.utils.Query;

import com.liuxin.zhiyuan.user.mapper.LxzyRoleMapper;
import com.liuxin.zhiyuan.user.service.RoleService;


@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<LxzyRoleMapper, LxzyRole> implements RoleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LxzyRole> page = this.page(
                new Query<LxzyRole>().getPage(params),
                new QueryWrapper<LxzyRole>()
        );

        return new PageUtils(page);
    }

}